package cn.itrip.dao;


import cn.itrip.beans.pojo.ItripHotelOrder;
import cn.itrip.beans.vo.ItripOrderSelect;
import cn.itrip.beans.vo.ItripPersonalOrderRoomVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

//酒店订单列表
public interface ItripHotelOrderMapper {

    int deleteByPrimaryKey(Long id);

    int insert(ItripHotelOrder record);

    int insertSelective(ItripHotelOrder record);

    //根据id查询订单
    ItripHotelOrder selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ItripHotelOrder record);

    int updateByPrimaryKeyWithBLOBs(ItripHotelOrder record);

    int updateByPrimaryKey(ItripHotelOrder record);

    List<ItripHotelOrder> selectByUserId(ItripOrderSelect itripOrderSelect);

    //根据用户id查询总数量
    int selectCount(ItripOrderSelect itripOrderSelect);

    public ItripPersonalOrderRoomVO getItripHotelOrderRoomInfoById(@Param(value = "id") Long id);


    //将状态为未支付的变成已取消（0->1）
    public int updateStatusUnpayToCancel();

    //将状态为未支付的变成已取消（0->1）
    public int updateStatusSuccessToconsumption();

    public ItripHotelOrder selectBySelect(ItripHotelOrder itripHotelOrder);


    ItripHotelOrder getorderByorderNo(@Param("orderNo") String orderNo);

    int updateByOrderId(ItripHotelOrder itripHotelOrde);

    List<ItripHotelOrder> getStatus2StoreSum(@Param("status") int status);
}